/*
 * @Author: gao_m3
 * @Date: 2022-07-14 16:51:18
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2022-08-22 15:50:23
 * @Descripttion: 
 */
import request from '@/utils/request'

// 获取普通表单列表
export function getCommonFormList (params) {
  return request({
    url: 'fawkes-test/reimbursement/page',
    method: 'get',
    params,
  })
}

// 查看普通表单详情
export function getCommonFormDetail (data) {
  return request({
    method: 'post',
    url: '/fawkes-test/form/query',
    data
  })
}
// 编辑普通表单
export function editCommonFormDetail (data) {
  return request({
    method: 'post',
    url: '/fawkes-test/reimbursement/data',
    data,
  })
}
// 新增普通表单
export function addCommonFormDetail (data) {
  return request({
    url: '/fawkes-test/form/commit',
    method: 'post',
    data,
  })
}
// 删除
export function deleteCommonForm (data) {
  return request({
    url: '/fawkes-test/reimbursement/data',
    method: 'delete',
    params: data,
  })
}
// 获取附件
export function getFile (data) {
  return request({
    url: '/sys-storage/file',
    method: 'post',
    data: data,
    sign: true,
  })
}
